This could be potentially useful for strongloop/loopback#158. But even if that turns out to be true, it's probably better to implement `getType` as part of the work on 158, so that the loopback's use case can drive the API design.