Added support for direction conversion of maps and collections