args: collection, type - Given a (multi)geometry, returns a (multi)geometry consisting only of elements of the specified type.