Kill gcc 4.8 warnings in tests.

Refs #9421
Fix numpy array writable flag setter.

Refs #9421