bugfix: missing pixels when beam aligned with grid (and some real to dble rewriting)