#118 added check for immutability for actual classes in addition to declared