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)
Can you add a docstring to this?  It's worth explaining what happens when `size` is None and when it is not.