Remove unnecessary class alias.
Fix bugs with rectangle function validation.