Fix missing 'dt' attribute using date_bounds argument.
Fix instance_to_datetime namespace bug.