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)