Fixed a mistake

The code called the type library's is_a_instance field instead of
is_an_instance.
Linked library
Updates and fixes in library