Improved type checks in 'types'.
Improved type checks in 'types'.

daviddeng/azrael,daviddeng/azrael,olitheolix/azrael,daviddeng/azrael,olitheolix/azrael,olitheolix/azrael,olitheolix/azrael,daviddeng/azrael,daviddeng/azrael,olitheolix/azrael