scala compiler bug inside lazy nested in while