Fix high-level enum read exception when quality is ATTR_INVALID
Instead of raising an exception, return a None
value if the attribute's quality is ATTR_INVALID
.
This is consistent with the other data types.
Added some tests to verify this for all data types.
Closes #498 (closed)