Add foreign_key_type option to add_reference

When adding reference using add_reference method, integer is
hardcoded type for foreign_key. This commit makes it possible
to set any foreign key type.