Made some problematic stan header functions inline.