Bug420

Fix and unit test for BUG 420 (http://www.avaje.org/bugdetail-420.html), which is also described and discussed here: https://groups.google.com/forum/?fromgroups=&pli=1#!topic/ebean/K4xZZFvYoMk