added helper methods for generating complex object

added helper methods for generating complex object (ActiveRecord::Base, Virtus)
http://stackoverflow.com/questions/24470490/how-to-pass-complex-object-to-swagger-param-function