Tweaked dynamic col impl to throw if duplicate columns detected