Increase number of steps in checkWeight.py

It failed on i386-arch
Prevent returning a reference to local temp object.

The warning was raised up by CLANG, what, seems, makes sense.
Prevent binding a reference member to a temp. value.

The warning was raised up by CLANG, what, seems, makes sense.