fixes a bug: immutable empty statement lists (for sake of performance) becomes mutable on the fly
fixes incomplete solution of 27e6fcabc12470fc83d3ab38f998eab9b2098c68