Add support for explicitly setting a field's logical type

Fix #409