move doctest-requires statements to correct blocks
Fix for construct that only works in numpy>=1.9