Introduced a function which evaluates the size of an array at compile ti...

...me to prevent mistakes about the size of an array.
This also stopped using ```Map``` to look up small arrays. It's not efficient in terms of both speed and memory usage.