Fixed Rational numbers conversion.
Fixed tests and minor errors.
Added CalculatedNode for compilation step. Errors fixed. Code refactored.