ruby: check that types exists before alaising them

on opencv 2.4.5: GFTTDetecotr does not exist