Refetch type map if type for statement to prepare or equery does not exists.

Especially when adding enum types, preparing new statements using that type
failed since the enum type did not exists in the type map. Refetching the
type map once if the type does not exists solves that issue.