Add numpy type and tests.