disallow assigning to closures that are inline or have type parameters, and improve error message when trying to use inline closures as a value (closes #3385)