Convert SPL illegal offset type into TypeError Make this consistent with the corresponding engine behavior. Also adjust the messages to match.