parsing out nulls and arrays from types