Refactor play-monad. Add handling for Long and LocalDate.