fixed dump_tree() for models using EAV. closes #302