Bug fixes.
Fixed crashes in Constraints and Solver.
Merge pull request #33 from niode/nathan

Fixed crashes in Solver, Constraints.