Fix some problems about custom fields and checkout.

Fixed some problems related to custom fields and checkout.

1. Add empty array as default value for custom_field for customer and address;
2. Fix display issue on register page when there are custom fields.
3. Fix checkout problem when there custom fields presented.

Please see details in the code.