refinancing out of HML

Will most appraisers understand a rehab from previous foreclosure and give true market value when doing an appraisal?
Is there a time frame which is best to refinance into a conventional loan after rehabbing?