Allowed to choose integer/smallint fields in relation fields

See this for a brief background: http://www.orocrm.com/forums/topic/custom-entity-relations