Refactored AR code.
Fixed the issue that Object/Component doesn't support using anonymous function as normal property values.