Fixed implicit down cast bug.
Fixed TODO about 8 byte members in classes