modded the type test. added additional constraint for lang bind definition

Signed-off-by: dvorkinista <villain@noironetworks.com>