nocompat fix for .type

Replace specs methods that are not available in nocompat like
Number.type, Hash.type and Array.type