Add a function for getting type that covers 'null' case
0.2.7