Type cast value before quoting if we have a column

Active Record is being refactored towards having the `quote` method care
only about types, and not about the column. This assumes that any column
specific behavior will have been handled before passing the value to
`quote`.