Change MalformedUriTemplate and VariableExpansion exceptions to runtime exceptions

So it's not necessary to wrap in `try` `catch` for programmer error exceptions.