ranef2long function

Convert ranef() output to long format