Revert "Reformat expand fn"

This reverts commit 6840d1f73ccdfda5f21cbd6912b9a3bf761830cf for performance.
Remove rtsopts from compile line for profiling