Size invert byte array correctly, Cleanup compiler APIs