fix bug not regnozing [] or {} as constant expressions