Fix resVar reconstruction from interface file
Allow polymorphic result variables. Fixes #71