Allow the argument to 'reserve' to be a compile-time expression

By using the constant-folder to reduce it to an integer.