TTElement: fix for a couple of incorrect assertions
TTApplicationManager: j.loader was crashing Max at launch -- this fixes that.  The problem is that TTObjectBase* was being assigned to TTValue.  TTValue understands this as a pointer, but needs the assignment to be an object so that it can manage the refcount correctly.