Check that partial and fully out-of-bound writes to a function's return value are handled correctly. Check this for both 4-state and 2-state vectors. Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>