Import resizing code from QRPA and make method stubs slightly less stubby.

Also fixes two copy-pasto return values.