Don't read attributes before type cast when dup'ing

This PR is meant to address issue #14411

Changed the behavior of #dup so that it doesn't clone attributes before type casting. This way, the duplicate copies type casted attributes instead of the raw Postgres data type.

Let me know if there's anything else that needs done.

cc: @senny, @leods92