Add size(Object) method to find the size of various collection-like objects bug 27909, from Steven Melzer