added support for scalar collections, close #13