Fixed BaseControl.val when using numerical values