ActiveRecord as_json doesn't consider :include's as_json

When using active record's as_json to customize the to_json output, the included association's as_json is not considered. This patch fixes it 

/cc @josevalim