ISIS-812: fix for PostgreSQL blob handling (for null blobs)

(making change to archetype in line with fix to ToDoItem archetype)
ISIS-811: fix to build archetype on JDK 8.