Fix for 524 and add automatically discovery of NumPy module level scalars

- automatically discovery of NumPy module level scalars
- added auto_attributes to do the above

The actual problem was TypingError not imported and importing numba.typeinfer causes a cyclic dependence.  Will need to do a bit of refactoring.