Add applyBndType in Field class hierarchies

Also getGridCoords and getNumGrid in StructuredMesh class will only
return the internal grids in PERIODIC boundary condition, unless
argument hasVirtualGrids is true. This will hide the boundary condtion
details from user.