When generating code, ensure that default list/dict arguments are initialised in local scope if unspecified or `None`.