added support for making lists immutable