[DROOLS-249] Handle conflicts when using @position in declared types
(cherry picked from commit 0876a1f6ad9327d42dd1c9a213d6eb7f677f8fe9)