handle Sage syntax - powers and literals