Fixes Type Hint and ST_REFERENCE spacing bug