Fix PrimitiveNumber to subclass PrimitiveType

There is no need to subclass Number, since the PrimitiveNumber's value
is a Number.