Fix lazy methods when value is an object.

Fix #796