Return [] for empty resultset when returns_a='list'.
Fix debugging line in model's getattribute.
Fix core options handling, pass extra options to form_query.