Fixing the way _id is gotten from the markers for advanced compilation

Closes #998 
@royrutto Exactly, I leave it as a debugging convenince. The impact on performance should be negligible, particularly in advanced mode, which will get rid of the function given that there are no uses in the production code.