fix expand_to's semantic
alpha recognition in mtimes caused problems, we were storing a scalar expression instead of a scalar value