Array.head function and tests.
Types.getTypeGroup and tests.