add tests for nested functions and kwargs
don't shadow ints or floats -- they are constants.
test that range dtypes are compatible