new version of the casting algorithm that Joel has documented in a flow chart diagram. The implementation of the algorithm is still in an alpha state and has a known bug
implementing support for groups mapped to a simulation to be marked multiple_cases_p which means that their users can (and should) be cast in many groups. Ticket 41