fixed SoftMaxTree:type() bug
added and tested SoftMaxTree:sharedClone()