added better support for "array" types and aliases