added support for Integer and other standard immutable classes