Fixed int test on windows
Added CollectionBuilder.withType() and size() methods.