try to improve reference conversions a bit

Signed-off-by: James Rubingh <james@wrive.com>