Fixing variable reference conflict when a class is being extended more than once

This fixes rxi/classic#2

The fix consists in deep copying the table as shown here: http://lua-users.org/wiki/CopyTable