Add __numpy_ufunc__, adjust tests, remove numpy-dev bugs (closes #2483, #2492)
Add numpy 1.9.0b1 to travis tests