YARD friendly code generation

@jarib Specs now pass. I had to remove some attributes from generated interfaces because they overwrite some element methods. Please, review code.
Can these be moved to the similar list in `attribute_helper.rb`? We shouldn't maintain two lists for the same purpose.