fixed bug_#4332 - Copy table no longer copies indexes

Signed-off-by: Viduranga Wijesooriya <vpowerrc@gmail.com>