bug fixes in vensim dll wrapper

typo and error catching, both related to handling of both single and
double precision vensim