.length and .size() are Integer, close gh-302. Thanks @andyli!