Improve ResourceLimits interface to be more forward compatible