Fixed 0 index of empty list, resultType / varType

There were some empty lists getting referenced with a 0 element, quick
Google showed .append was the correct syntax. Fixed some resultType keys
that should have been varType