Add custom scalar support and fixed point example