Added support for numpy scalar datatypes

Before this would throw a NoMatchError. Now they should be
loaded and dumped properly. Still todo is to fix this for
dictionaries, e.g. {'d' : np.float16(1)} will still throw
an exception.