Implement array methods

- Implement ndarray.sum() and ndarray.flat as array methods.
- Add support for implementing internal features with Numba compiler

Additonal:
- Added size arg to alloca_once
- Slient inspect_types tests (fix #741)
Out of curiosity, is there a functional reason to change this, or just a style thing?