fixed #187, optimizer removed compiletime functions before they could run