Possibly a type checking issue with bracket types, fixes #365