Working on tests
Add density function
Fix encoding for Numpy scalars (which are iterable)
Change name of registered functions
Fix for server side functions