Adding target for all tests, fixing external for array functions.
Refining/fixing generics.