ENH: Adds functions for checking the type of some opcodes.

This change will be linked with all other components of 16candles