Fix functions referencing types before declaration