Small tweaks to switches and buttons.

For buttons, I removed setting the frame when copying styles. For
switches I force setting their values to the closest half-pixel for
drawing issues.