Check bitmap allocation for overflows

This actually fixes #146.

The overflow check itself is obvious. Also, make ass_align() return an
unaligned value if aligning it would overflow. This is probably better,
as it for example makes the overflow check in the caller simpler.
Check the overflow check for overflows

Seriously...

Checking for negative values might not be needed, but do it anyway.