Made XJSOpeningElement subclass of ObjectLiteral (simplifies common handling).

Added type checks for JSX elements.