Add astype, iftype opcodes (fixes #12).