RF: simplify and clarify scaling tests

Scaling tests were testing an undefined cast (of NaN to int); use 0
instead of NaN so the behavior is defined or test for cast value of NaN
directly.
BF: copy numpy config list so as not to change it

Use copy of numpy global variable so we don't change it accidentally.