Allow override of dtype in test

Set to float64. With float32 numerical stability issues meant that the
log-likely declined.
Record log likelihood for plotting training progress

Var bound yet to do.
Add support for entropy

Allow us to calculate entropy for arrays where one dimension is jagged
Eliminate empty docs from real-world NIPS tests