New slice method, resolving typed arrays at compile time

This is an example for typed arrays being resolved at compile time, not at runtime. It is guaranteed when all methods are implemented this way, it will speedup things.