Support Size and Point arguments in Rectangle#expand()
Make JSON serialization work for Shapes.